﻿using banyuetan_2_0.Common.Enum;
using System;

namespace banyuetan_2_0.Model.ViewModels
{
    public class ArticleViewModelForCreate
    {
        public int aId { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string aTitle { get; set; }
        /// <summary>
        /// 简介
        /// </summary>

        public string aDescribe { get; set; }
        /// <summary>
        /// 正文
        /// </summary>

        public string aContent { get; set; }
        /// <summary>
        /// 封面大图id
        /// </summary>
 
        public int aTitlePicId { get; set; }
        /// <summary>
        /// 封面大图导航属性
        /// </summary>

        public string aTitlePicPath { get; set; }
        /// <summary>
        /// 文章状态，默认为待审核状态
        /// </summary>

        public Status aStatus { get; set; } = Status.PendingReview;
        /// <summary>
        /// 文章权重，默认为0
        /// </summary>

        public double aWeight { get; set; } = 0;
        /// <summary>
        /// 更新时间，默认为当前时间
        /// </summary>

        public DateTime aUpdateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除，默认为否
        /// </summary>

        public bool aIsDeleted { get; set; } = false;
        /// <summary>
        /// 访问量统计
        /// </summary>

        public int aVisitCount { get; set; } = 0;
        /// <summary>
        /// 作者Id
        /// </summary>
 
        public int aEditorId { get; set; }
        /// <summary>
        /// 导航属性：作者
        /// </summary>

        public string aEditorRealName { get; set; }

        //2022年10月26日19:53:43新加属性
        /// <summary>
        /// 作者
        /// </summary>
        public string aAuthorName { get; set; } = "";
        /// <summary>
        /// 来源
        /// </summary>
        public string aComeFrom { get; set; } = "";
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime aCreateTime { get; set; } = DateTime.Now;

        //加入额外的内容：category、categories、sources等内容

        /// <summary>
        /// 主分类
        /// </summary>
        public int aCategoryId { get; set; }
        /// <summary>
        /// 额外添加到的分类
        /// </summary>
        public int[] aExtraCategoryId { get; set; }
        /// <summary>
        /// 相关联的图片id集合
        /// </summary>
        public int[] aRelationPic { get; set; }

    }
}
